V = Variables
R = Reading functions
BINARY —→ SIGNED WORD
The VR10BinToSLn function converts a binary variable type to a Signed Long type (long with sign).
VR10BinToSLn (array, index, return, errcode)
Parameters:
| IN/OUT | VARIABLE TYPE | EXAMPLE NAME | DIM | |
|---|---|---|---|---|
| IN | ARRGBL | array | B | Array containing the data to be converted (must be declared with at least “index + 4” items) |
| IN | GLOBAL | index | L | Index of the array element at the beginning of the data |
| OUT | GLOBAL | return | L | Data value converted |
| OUT | GLOBAL | errcode | F | Variable that indicates a possible error on the function |
Una volta richiamata la funzione, 'errcode' può assumere determinati valori, il significato di tali valori è riassunto di seguito:
0: Nessun errore
Trasforma un valore (binario) in un valore signed long
index = 1 array[1] = 1 array[2] = 50 array[3] = 120 array[4] = 25 VR10BinToSLn (array, index, return, errcode) ;Sul dato return si troverà : ; return = 20084761